{% extends 'layout.html' %}

{% block css %}
li{list-style-type:none}
{% endblock %}

{% block content %}
    <div class="panel panel-primary">
        <div class="panel-heading text-center">
            <h3 class="panel-title">新增学生信息</h3>
        </div>
        <div class="panel-body">
            <form action="" method="post" class="form-horizontal">
                {% csrf_token %}
                {% for field in form_obj %}
                 <div class="form-group">
                    <label for="{{ field.id_for_label }}"
                           class="col-sm-2 control-label">{{ field.label }}</label>
                    <div class="col-sm-8">
                        {{ field }}
                    </div>
                    <span style="color: red">{{ field.errors.0 }}</span>
                </div>
                {% endfor %}
                <button class="btn btn-success">提交</button>
            </form>
        </div>
    </div>
{% endblock %}